import request from '@/http/request.js'

//查看列表
export function selectFoodList(data){
   return request({
    url:'/food/selectFoodList',
    method:'post',
    data
   })
}

export function insertFood(data){
    return request({
        url:'/food/insertFood',
        method:'post',
        data
    })
}

export function selectFoodDetail(data){
    return request({
        url:'/food/selectFoodDetail?foodId='+data,
        method:'get'
    })
}

export function updateFoodDetail(data){
    return request({
        url:'/food/updateFoodDetail',
        method:'post',
        data
    })
}

export function deleteFood(data){
    return request({
        url:'/food/deleteFood?foodId='+data,
        method:'get'
    })
}